<template>
  <section class="my-container">
    <!-- 租车参数选择 -->
    <ParamSelect />
    <aside class="bg-white">
      <BasicConfiguration />
      <Step />
      <BuyNotice />
    </aside>
  </section>
</template>

<script>
  export default {
    name: 'Detail',
    data() {
      return {}
    },
    mounted() {
      this.getTypeInfo(this.typeId)
    },
    methods: {
      ...mapActions('type', ['getTypeInfo']),
    },
    computed: {
      ...mapState('type', ['typeInfo']),
      typeId() {
        return this.$route.params.typeId
      },
    },
    beforeDestroy() {
      this.typeInfo = {}
    },
  }
</script>

<style scoped></style>
